<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%@taglib uri="/struts-dojo-tags" prefix="sx"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script type="text/JavaScript" src="javascript.js"></script>
        <title>Manter Curso</title>
    </head>
    <body>

        <h1>Manter Curso - ${operacao}</h1>


        <s:form action="Curso">
            <s:hidden name="operacao" value="%{operacao}"></s:hidden>
            <s:textfield name="curso.codCurso" readonly="%{readOnlyCod}" label="Codigo do Curso" onkeyup="campoNumerico(this)" value="%{curso.codCurso}"></s:textfield>
                <s:textfield name="curso.nome" readonly="%{readOnly}" label="Nome do Curso" value="%{curso.nome}"></s:textfield>
                <s:select name="curso.tipoCurso" readonly="%{readOnly}" label="Tipo do Curso" list="tipoCurso" ></s:select>
                <s:select name="curso.professor.matricula" readonly="%{readOnly}" label="Professor Coordenador" listKey="matricula" listValue="nome" 
                          list="professores" ></s:select>
                <s:textfield name="curso.totalPeriodos" readonly="%{readOnly}" label="Total de Períodos" onkeyup="campoNumerico(this)" value="%{curso.totalPeriodos}"></s:textfield>
                <s:textfield name="curso.cargaHoraria" readonly="%{readOnly}" label="Carga Horária" onkeyup="campoNumerico(this)" value="%{curso.cargaHoraria}"></s:textfield>
            
            <s:submit action="voltarCurso" value="Voltar"></s:submit>
            <s:submit action="confirmarCurso" value="Confimar"></s:submit>            
        </s:form>
    </body>
</html>
